<?php

class sfJobeetLanguageActions extends sfActions
{

  public function executeChangeLanguage(sfWebRequest $request)
  {
    $form = new sfFormLanguage($this->getUser(), array('languages' => array('en', 'fr')));
    unset($form[$form->getCSRFFieldName()]);
    $form->process($request);
    
    return $this->redirect('@localized_homepage');
  }
}

